package com.hoshiibuy.sys.permission.entity;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 表述系统平台功能
 * </p>
 *
 * @author Mr.Wu
 * @since 2019-04-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "SysModels对象", description = "表述系统平台功能")
public class SysModels extends Model<SysModels> {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "id", hidden = true)
	private Long id;

	@ApiModelProperty(value = "编号")
	private String code;

	@ApiModelProperty(value = "上级功能")
	private Long parentid;

	@ApiModelProperty(value = "类别")
	private String type;

	@ApiModelProperty(value = "系统名称")
	private String name;

	@ApiModelProperty(value = "系统标题")
	private String title;

	@ApiModelProperty(value = "系统描述")
	private String description;

	@ApiModelProperty(value = "排序")
	private Long orders;

	@ApiModelProperty(value = "创建时间")
	private LocalDateTime addTime;

	@ApiModelProperty(value = "更新时间")
	private LocalDateTime updateTime;

	@ApiModelProperty(value = "版本号")
	private Integer version;

	@ApiModelProperty(value = "是否可用 0-不可用 1-可用")
	private Integer enabled;

	@TableField(exist = false)
	@ApiModelProperty(value = "权限id数组")
	private List<String> permissionIdList;

	@TableField(exist = false)
	@ApiModelProperty(value = "权限详情数组")
	private List<SysPermissiones> permissionList;

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public Long getParentid() {
		return parentid;
	}

	public void setParentid(Long parentid) {
		this.parentid = parentid;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Long getOrders() {
		return orders;
	}

	public void setOrders(Long orders) {
		this.orders = orders;
	}

	public LocalDateTime getAddTime() {
		return addTime;
	}

	public void setAddTime(LocalDateTime addTime) {
		this.addTime = addTime;
	}

	public LocalDateTime getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(LocalDateTime updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getVersion() {
		return version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

	public Integer getEnabled() {
		return enabled;
	}

	public void setEnabled(Integer enabled) {
		this.enabled = enabled;
	}

	public List<String> getPermissionIdList() {
		return permissionIdList;
	}

	public void setPermissionIdList(List<String> permissionIdList) {
		this.permissionIdList = permissionIdList;
	}

	public List<SysPermissiones> getPermissionList() {
		return permissionList;
	}

	public void setPermissionList(List<SysPermissiones> permissionList) {
		this.permissionList = permissionList;
	}

}
